package com.ld.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ld.pojo.Classes;
import com.ld.service.ClassesService;
import com.ld.util.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@RestController
@RequestMapping("classes")
public class ClassesController {
	@Reference
	private ClassesService classesService;

	@RequestMapping("list")
	public R findAll(){
		List<Classes> classesList = classesService.findAll();
		return R.ok().data("list",classesList);
	}
}
